body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}

.tag-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
}

.tag-item {
    padding: 8px 15px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #d2e3fc;
    font-size: 14px;
    position: relative;
}

.tag-item.readonly {
    background: #f5f5f5;
    color: #666;
    cursor: default;
    border-color: #ddd;
}

.tag-item.readonly:hover {
    transform: none;
    box-shadow: none;
}

.tag-item.admin {
    background: #fce8e6;
    color: #d93025;
    border-color: #fad2cf;
}

.tag-item.admin:hover {
    background: #fad2cf;
}

.tag-item:hover {
    background: #d2e3fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tag-item:active {
    transform: translateY(0);
    background: #c6dafc;
}


.tag-container {
    padding: 15px;
    margin-left: 200px; /* 为左侧导航留出空间 */
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
}

.tag-item {
    display: inline-block;
    padding: 10px 20px;
    background-color: #009688;
    color: #fff;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.tag-item:hover {
    opacity: 0.8;
}

.tag-item.readonly {
    background-color: #999;
    cursor: not-allowed;
}

.tag-item.admin {
    background-color: #1effc7;
}

/* 修复 layui 布局样式 */
.layui-layout-admin .layui-body {
    bottom: 0;
}

.layui-layout-admin .layui-logo {
    color: #fff;
    font-size: 18px;
}